import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
            //濡傛灉鍝嶅簲鎴愬姛锛屾墦鍗拌繑鍥炲
            if (response.isSuccessful()){



                try {
                    String body = response.body().string();
                    ObjectMapper mapper = new ObjectMapper();
                    Map<String, String> result = mapper.readValue(body, new TypeReference<Map<String, String>>() {});

                    String openId = result.get("openid");
                    String sessionKey = result.get("session_key");

                    wXloginVO.setOpenId(openId);
                    wXloginVO.setSessionKey(sessionKey);

                    int a = wxMapper.updateOpenId(wXloginVO);
                    if (a <= 0) {
                        return AjaxResult.success("鐧诲綍澶辫触");
                    }
                } catch (Exception e) {
                    e.printStackTrace();
                    return AjaxResult.error("瑙ｆ瀽寰俊鏁版嵁澶辫触");
                }
            }
            return AjaxResult.success("鐧诲綍鎴愬姛");

        }
